package com.bbcare.plat.support.service;

import java.util.Map;

import com.bbcare.comm.AppException;
import com.bbcare.comm.SysException;
import com.bbcare.followup.plat.entity.BsServiceDict;

/**
 * 调用外部接口服务类
 * 
 * @date 2017.5.29
 * @author DemonLee
 */
public interface IBizInterAsClient {

    /**
     * 根据服务判断服务类型,进行服务调用选择，custIdValue暂未启用，后续路由可能需要
     */
    public String call(String serviceName, String custIdValue, Map<String, Object> map) throws SysException, AppException;

    /**
     * 调用能力开放平台HSF
     * 
     * @param params
     * @return
     * @throws SysException
     * @throws AppException
     */
    public String callService(BsServiceDict bsdVo, String custIdValue, String inPparams)
            throws SysException, AppException;

    /**
     * 调用消息中间件
     * 
     * @param params
     * @return
     * @throws SysException
     * @throws AppException
     */
    public String callInform(BsServiceDict bsdVo, String custIdValue, String inPparams)
            throws SysException, AppException;

    /**
     * 调用ESB服务
     * 
     * @param params
     * @return
     * @throws SysException
     * @throws AppException
     */
    public String callServiceEsb(BsServiceDict bsdVo, String custIdValue, String servParam)
            throws SysException, AppException;

}
